package com.cbgolf.oa.activity.order;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.cbgolf.oa.R;
import com.cbgolf.oa.base.BaseActivity;
import com.cbgolf.oa.model.BillModel;
import com.cbgolf.oa.presenter.IPresenterImp;
import com.cbgolf.oa.views.BillingView;

/**
 *
 * @author lq
 * @date 2017/11/3
 */

public class OrderDetails extends BaseActivity implements IPresenterImp {

    private BillingView view;
    private BillModel model;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.a_billingsuccess);
    }

    @Override
    protected void findViews() {
        view = new BillingView(this, this);
        view.setOrderDetails();
        model = new BillModel(this, this);
    }

    @Override
    public String getActivityTitle() {
        return "订单详情";
    }

    @Override
    public void back() {
        finish();
    }

    @Override
    public void showProgress() {
        view.showProgress();
    }

    @Override
    public void stopProgress() {
        view.stopProgress();
    }

    @Override
    public void getDataFail(String msg) {
        view.getDataFail(msg);
    }

    @Override
    public void getDataSuccess(Object obj) {
        view.getDataSuccess(obj);
    }


    @Override
    public void getDataFail(String msg, int code) {
        view.getDataFail(msg, code);
    }

}
